﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BarberShop.Model;
using BarberShop.BLL;


public partial class DeviceManage : BasePage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            GetDeviceData();
        }
    }

    #region 设备信息
    protected void GetDeviceData()
    {
        DeviceInfoSearch _searchP = new DeviceInfoSearch();
        var data = DeviceInfoBLL.GetDeviceList(_searchP);
        this.Grid_Device.DataSource = data;
        this.Grid_Device.DataBind();
    }
    #endregion

    protected void Grid_Device_SelectedIndexChanging(object sender, GridViewSelectEventArgs e)
    {
        this.Grid_Device.PageIndex = e.NewSelectedIndex;
    }
}
